/**
 * 
 * @Project HRL Simulation
 * @Date 20.06.2011
 * @Author Aebi Pascal, Kocher Marc, Sriranjan George
 * @School BFH-TI Biel, Projekt 1
 *
 */

package utils;

public class Position {
	
	private int x, y, z;
	
	
	public Position(int x, int y, int z){
		this.x = x;
		this.y = y;
		this.z = z;
	}
	
	
	public void setPosition(int x, int y, int z){
		this.x = x;
		this.y = y;
		this.z = z;
	}
	
	
	public int getX() {
		return x;
	}

	
	public int getY() {
		return y;
	}

	
	public int getZ() {
		return z;
	}
	
	
	public boolean equals(Position position){
		if(this.x == position.getX() && this.y == position.getY() && this.z == position.getZ()){
			return true;
		} else {
			return false;
		}
	}

	
	@Override
	public String toString(){
		return "x: " + x + "  y: " + y + "  z: " + z;
	}
	
	
	public void printPosition(){
		System.out.println("x: " + x + "  y: " + y + "  z: " + z);
	}
	
}
